<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<html>
<head>
	<title>派车单管理</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<meta name="decorator" content="ani"/>
	<%@ include file="/webpage/include/bootstraptable.jsp"%>
	<%@include file="/webpage/include/treeview.jsp" %>
	<%@include file="dispatchingList.js" %>
</head>
<body>
	<div class="wrapper wrapper-content">
	<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title">派车单列表</h3>
	</div>
	<div class="panel-body">
		<sys:message content="${message}"/>
	
	<!-- 搜索 -->
	<div class="accordion-group">
	<div id="collapseTwo" class="accordion-body collapse">
		<div class="accordion-inner">
			<form:form id="searchForm" modelAttribute="dispatching" class="form form-horizontal well clearfix">
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="状态：">单据状态：</label>
				<select class="form-control" name="status" >
					<option value="" >请选择</option>
					<option value="已配载">已配载</option>
					<option value="已装车">已装车</option>
					<option value="已生成出库单">已生成出库单</option>
					<option value="部分出库">部分出库</option>
					<option value="已出库">已出库</option>
					<option value="已生成合同">已生成合同</option>
					<option value="已发车">已发车</option>
				</select>

				</div>
				<%--　<div class="col-xs-6 col-sm-3 col-md-2">--%>
				<%--<label class="label-item single-overflow pull-left" title="状态：">投保状态：</label>--%>
				<%--<select class="form-control" name="bx" >--%>
					<%--<option value="" >请选择</option>--%>
					<%--<option value="未投保">未投保</option>--%>
					<%--<option value="已投保">已投保</option>--%>
				<%--</select>--%>

				<%--</div>--%>

				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="派车单号：">派车单号：</label>
				<form:input path="pcdh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="合同号：">合同号：</label>
				<form:input path="hth" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>

				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="车牌号：">车牌号：</label>
				<form:input path="cph" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="行驶证号：">行驶证号：</label>
				<form:input path="xszh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="司机姓名：">司机姓名：</label>
				<form:input path="sjxm" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="司机电话：">司机电话：</label>
				<form:input path="sjdh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>
				　<div class="col-xs-6 col-sm-3 col-md-2">
				<label class="label-item single-overflow pull-left" title="驾驶证号：">驾驶证号：</label>
				<form:input path="jszh" htmlEscape="false" maxlength="64"  class=" form-control"/>
				</div>

		  <div class="col-xs-12 col-sm-6 col-md-4">
			<div style="margin-top:26px">
			  <a  id="search" class="btn btn-primary btn-rounded  btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
			  <a  id="reset" class="btn btn-primary btn-rounded  btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
			 </div>
	    </div>	
	</form:form>
	</div>
	</div>
	</div>
	
	<!-- 工具栏 -->
	<div id="toolbar">

	        	<a class="accordion-toggle btn btn-default" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
					<i class="fa fa-search"></i> 检索
				</a>
		    </div>
		
	<!-- 表格 -->
	<table id="dispatchingTable" class="table text-nowrap"  data-toolbar="#toolbar"></table>

    <!-- context menu -->
    <%--<ul id="context-menu" class="dropdown-menu">--%>
    	<%--<shiro:hasPermission name="tms:dispatching:edit">--%>
        <%--<li data-item="edit"><a>编辑</a></li>--%>
        <%--</shiro:hasPermission>--%>
        <%--<shiro:hasPermission name="tms:dispatching:del">--%>
        <%--<li data-item="delete"><a>删除</a></li>--%>
        <%--</shiro:hasPermission>--%>
        <%--<li data-item="action1"><a>取消</a></li>--%>
    <%--</ul>  --%>
	</div>
	</div>
	</div>
	<div class="modal fade" id="fctx" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title">发车填写</h4>
				</div>
				<div class="modal-body">
					<table class="table table-bordered">
						<tr>
							<td width="35%">派车单号</td>
							<td><input id="pcdh" readonly="readonly" class="form-control "/></td>
						</tr>
						<tr>
							<td width="35%">合同号</td>
							<td><input id="hth" readonly="readonly" class="form-control "/></td>
						</tr>

						<tr>
							<td width="35%">租车协议号</td>
							<td><input id="zcxyh" readonly="readonly" class="form-control "/></td>
						</tr>
						<tr>
							<td width="35%">车牌号</td>
							<td><input id="cph" readonly="readonly" class="form-control "/></td>
						</tr>
						<tr>
							<td width="35%">到提货地时间</td>
							<td><div class='input-group form_datetime' id='date'>
								<input type='text'  name="date" id="dd" class="form-control ">
								<span class="input-group-addon">
			                        <span class="glyphicon glyphicon-calendar"></span>
			                    </span>
							</div></td>
						</tr>
						<tr>
							<td width="35%">离开提货地时间</td>
							<td><div class='input-group form_datetime' id='date1'>
								<input type='text'  name="date"  id="lk" class="form-control " />
								<span class="input-group-addon">
			                        <span class="glyphicon glyphicon-calendar"></span>
			                    </span>
							</div></td>
						</tr>
						<tr>
							<td width="35%">预计到达时间</td>
							<td><div class='input-group form_datetime' id='date2'>
								<input type='text'  name="date"  id="yjdd" class="form-control " />
								<span class="input-group-addon">
			                        <span class="glyphicon glyphicon-calendar"></span>
			                    </span>
							</div></td>
						</tr>

					</table>

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary" onclick="fcqd()">确定</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<div class="modal fade" id="scckd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title">发车填写</h4>
				</div>
				<div class="modal-body">
					<table class="table table-bordered">
						<thead>
						<th><input  type='checkbox'onchange="bh(this)"></th>
						<th>提货仓库</th>
						</thead>
						<tbody id="detil"></tbody>

					</table>

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary" onclick="ckqd()">确定</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>

</body>

</html>